#include "vectorTestCase.h"
#include "../libpresenter/presenter.h"
#include <cstring>
using namespace std;

int vectorTestCase(unsigned char *plaintext, unsigned char *key, 
		   unsigned char *ciphertext) {
	unsigned char tmp[8];
	unsigned char expandedKeys[32][8];

	memcpy(tmp, plaintext, sizeof(char[8]));
	generateRoundKeys(key, expandedKeys);

	cipher(tmp, expandedKeys);

	return memcmp(tmp, ciphertext, sizeof(char[8]));
}
